package com.vito.framework.mq.impl;

import javax.annotation.Resource;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Service;

import com.vito.framework.mq.MqService;

@Service()
public class RabbitMqService implements MqService {

	@Resource
	RabbitTemplate rabbitTemplate;

	@Override
	public void send(String queueName, String message) {
		rabbitTemplate.convertAndSend(queueName,message);
	}


}
